package com.pactera.asmp.server.dao;

import com.pactera.asmp.server.pojo.ScriptInfoHistory;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @ProjectName: asmp-server
 * @Package com.pactera.asmp.server.dao
 * @ClassName: ScriptInfoHistoryMapper
 * @Description: ScriptInfoHistoryMapper
 * @Date 2020/07/14 17:12
 * @Author lvzhiqiang
 * @Version 1.0
 */
@Mapper
public interface ScriptInfoHistoryMapper {
    /**
     * 根据参数查询数据
     * @param scriptInfoHistory
     * @return
     */
    List<ScriptInfoHistory> select(ScriptInfoHistory scriptInfoHistory);
    ScriptInfoHistory selectLastByScriptId(@Param("scriptId") Integer scriptId);

    /**
     * 添加数据
     * @param scriptInfoHistory
     * @return
     */
    int insert(ScriptInfoHistory scriptInfoHistory);

    /**
     * 删除数据
     * @param id
     * @return
     */
    int deleteByPrimaryKey(Integer id);


}
